import { S } from '../../s';
import { IPSAppCodeList } from '../codelist/ipsapp-code-list';
import { IPSAppDEMultiDataView } from './ipsapp-demulti-data-view';
import { PSAppDEXDataViewImpl } from './psapp-dexdata-view-impl';

export class PSAppDEMultiDataViewImpl
  extends PSAppDEXDataViewImpl
  implements IPSAppDEMultiDataView
{
  protected quickgrouppscodelist: IPSAppCodeList;
  getQuickGroupPSCodeList(): IPSAppCodeList | null {
    return (
      this.quickgrouppscodelist ||
      (this.quickgrouppscodelist = this.fillObjectModel(
        S._8,
        this.M.getQuickGroupPSCodeList,
        S._2d4,
      ) as IPSAppCodeList)
    );
  }

  get enableEditData(): boolean {
    return this.M.enableEditData;
  }

  get enableExport(): boolean {
    return this.M.enableExport != null ? this.M.enableExport : false;
  }

  get enableFilter(): boolean {
    return this.M.enableFilter;
  }

  get enableImport(): boolean {
    return this.M.enableImport != null ? this.M.enableImport : false;
  }

  get enableNewData(): boolean {
    return this.M.enableNewData;
  }

  get enableQuickCreate(): boolean {
    return this.M.enableQuickCreate;
  }

  get enableQuickGroup(): boolean {
    return this.M.enableQuickGroup != null ? this.M.enableQuickGroup : false;
  }

  get enableQuickSearch(): boolean {
    return this.M.enableQuickSearch != null ? this.M.enableQuickSearch : false;
  }

  get enableSearch(): boolean {
    return this.M.enableSearch != null ? this.M.enableSearch : false;
  }

  get enableViewData(): boolean {
    return this.M.enableViewData;
  }

  get expandSearchForm(): boolean {
    return this.M.expandSearchForm != null ? this.M.expandSearchForm : false;
  }

  get pickupMode(): boolean {
    return this.M.pickupMode != null ? this.M.pickupMode : false;
  }
  get cls(): string {
    return 'PSAppDEMultiDataViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._4a || cls == S._2f || cls == S._30 || cls == S._4b)
      return true;
    return super.instanceof(cls);
  }
}
